﻿namespace OnDash.Windowing.Common.Inputs;

public class Image
{
    public Image(int width, int height, byte[] data)
    {
        ArgumentNullException.ThrowIfNull(data);

        if (data.Length < Width * Height * 4) throw new ArgumentOutOfRangeException();

        Width = width;
        Height = height;
        Data = data;
    }

    public Image()
    {
    }

    public int Width { get; }
    public int Height { get; }
    public byte[] Data { get; }
}